import request from '@/utils/request'

export function updateContentHit (data) {
  return request({
    method: 'put',
    url: '/mutual-content/content/hits',
    params: {
      id: data.id,
      hits: data.hits
    }
  })
}

export function getRevisions (id) {
  return request({
    method: 'get',
    url: '/mutual-content/contentHistory/contentID',
    params: {
      contentId: id
    }
  })
}



export function getRevisionContent (id) {
  return request({
    method: 'GET',
    url: '/mutual-content/contentHistory',
    params: {
      id: id
    }
  })
}

export function getRevisionContentDetail (id) {
  return request({
    method: 'GET',
    url: '/mutual-content/contentHistory/history',
    params: {
      id: id
    }
  })
}